Part Number Hot Search : 
MX7245JN CBM42 PM200 BAS40RFG M52352FP 3C8T6 00221 MDT205
Product Description
Full Text Search
 

To Download HV7131RP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  HV7131RP 2005/ 02 / 04 v1.5 - 1 - 2005 magnachip semiconductor ltd. cmos image sensor with image signal processing HV7131RP magnachip semiconductor ltd. version 1.5 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 2 - 2005 magnachip semiconductor ltd. revision history revision script date comments v1.0 2003/10/15/wed - HV7131RP preliminary is released v1.1 2004/01/20/tue - register information is updated v1.2 2004/03/22/mon - register information is updated v1.3 2004/08/16/mon - register information is updated. (ae anti-flicker step, ae maximum limit) - enb setting is updated. v1.4 2004/10/04/mon - magnachip logo changed v1.5 2005/02/04/fri - spectral response is updated. (p.13) - anti-banding configuration is updated.(p.62) - output data according to video mode is updated.(p. 63) - electro-optical characteristics is updated.(p.75) copyright by magnachip semiconductor ltd., all right reserved 2003, 2004, 2005 disclaimer this document is a general product description and is subject to change without notice. magnachip semiconductor ltd., assumes no responsibility or liability arising from use of circuit described, and no patent licenses are implied. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 3 - 2005 magnachip semiconductor ltd. contents general description ...........................................................................................................................4 features ..............................................................................................................................................4 block diagram ....................................................................................................................................5 40ld pin diagram ...............................................................................................................................7 pin description ...................................................................................................................................8 functional description .......................................................................................................................9 pixel architecture.................................................................................................................9 enb setting guide information for normal stand-by mode...............................................9 sensor imaging operation..................................................................................................10 10bit on-chip adc...............................................................................................................10 gamma correction..............................................................................................................11 color interpolation..............................................................................................................11 color correction & color space conversion.....................................................................12 image enhancement............................................................................................................12 edge enhancement.............................................................................................................12 output formatting...............................................................................................................12 auto exposure control.......................................................................................................13 auto white balance.............................................................................................................13 spectral characteristics......................................................................................................13 register description ........................................................................................................................14 frame timing.....................................................................................................................................57 anti-banding configuration.................................................................................................................63 data output timing and interface ...................................................................................................63 output data according to video mode ............................................................................................64 i2c chip interface .............................................................................................................................72 ac/dc characteristics ......................................................................................................................73 electro-optical characteristics ........................................................................................................77 clcc package specification..............................................................................................78 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 4 - 2005 magnachip semiconductor ltd. general description HV7131RP is a highly integrated single chip cmos color image sensor implemented by proprietary magnachip 0.30um cmos sensor process realizing high sensitivity and wide dynamic range. total pixel array are 660x507 pixels. each active pixel composed of 4 transistors has a micro-lens to enhance sensitivity, and converts photon energy to analog pixel voltage. on-chip 10bit analog to digital converter (adc) digitizes analog pixel voltage, and on-chip correlated double sampling (cds) scheme reduces fixed pattern noise (fpn) dramatically. general image processing functions such as gamma correction, color interpolation, color correction, color space conversion, h/v edge enhancement, image enhancement, auto exposure, and auto white balance are implemented to diversify its applications, and various output formats are supported for the sensor to easily interface with different video codec chips. the integration of sensor function and image processing functions make HV7131RP especially very suitable for mobile imaging systems such as imt-2000 phone s video part that requires very low power and system compactness. features n 1/4.5 inch optical format n total pixel array : 660x507 n active pixel array : 640x480 n 5.04um x 5.04um active square pixel n micro-lens for high sensitivity n rgb mosaic color filter array n on-chip 10 bit adc n correlated double sampling for reduction of fixed pattern noise n black level compensation n gamma correction by programmable piecewise linear approximation n 3x3 color interpolation n color correction by programmable 3x3 matrix operation n image enhancement : contrast, hue, saturation, brightness n edge enhancement n color space conversion from rgb to ycbcr n inverse color space conversion ycbcr to rgb n sub-sampling modes : 2x2, 2x6, cif, qcif n various output formats : ycbcr 4:2:2, rgb 5:6:6, bayer pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 5 - 2005 magnachip semiconductor ltd. n 8bit data bus mode n automatic exposure control n automatic white balance control n frame rate : 30 f/s at 25mhz, hblank = 208, vblank = 8 n power consumption: 86mw @ 30f/s and 2.8v, 68mw @ 15f/s and 2.8v, 336uw @ power down n operation voltage range : 2.6v ~ 3.0v, operation temperature : -10 ~ +50 degrees celsius n package types : clcc 40 pin, cob(chip-on-board), cof(chip-on-flex) block diagram rgb bayer color space conversion & color correction output formatter & inverse conversion 3x3 color interpolation to 24bit rgb sensor core sck sda resetb mclk hsync vsync cen strobe g a m m a c o r r e c t i o n 10bit adc h/v edge enhancement d a r k n o i s e c a n c e l l a t i o n a u t o b l a c k l e v e l c o m p e n s a t i o n color suppression ycbcror rgb output stream image enhancement (hue, saturation, contrast, brightness) r(g)b (analog) gain control (awb) auto exposure anti flicker auto white balance integration time & pre-amp gain control (ae) vclk analog r/g/b gain amp. analog pre gain amp. s e n s o r c o n t r o l l o g i c rgb bayer color space conversion & color correction output formatter & inverse conversion 3x3 color interpolation to 24bit rgb sensor core sck sda resetb mclk hsync vsync cen strobe g a m m a c o r r e c t i o n 10bit adc h/v edge enhancement d a r k n o i s e c a n c e l l a t i o n a u t o b l a c k l e v e l c o m p e n s a t i o n color ycbcror rgb output stream image enhancement (hue, saturation, contrast, brightness) r(g)b (analog) gain control (awb) auto exposure anti flicker auto white balance integration time & pre-amp gain control (ae) vclk analog r/g/b gain amp. analog pre gain amp. s e n s o r c o n t r o l l o g i c rgb bayer color space conversion & color correction output formatter & inverse conversion 3x3 color interpolation to 24bit rgb sensor core sck sda resetb mclk hsync vsync cen strobe g a m m a c o r r e c t i o n 10bit adc h/v edge enhancement d a r k n o i s e c a n c e l l a t i o n a u t o b l a c k l e v e l c o m p e n s a t i o n color suppression ycbcror rgb output stream image enhancement (hue, saturation, contrast, brightness) r(g)b (analog) gain control (awb) auto exposure anti flicker auto white balance integration time & pre-amp gain control (ae) vclk analog r/g/b gain amp. analog pre gain amp. s e n s o r c o n t r o l l o g i c rgb bayer color space conversion & color correction output formatter & inverse conversion 3x3 color interpolation to 24bit rgb sensor core sck sda resetb mclk hsync vsync cen strobe g a m m a c o r r e c t i o n 10bit adc h/v edge enhancement d a r k n o i s e c a n c e l l a t i o n a u t o b l a c k l e v e l c o m p e n s a t i o n color ycbcror rgb output stream image enhancement (hue, saturation, contrast, brightness) r(g)b (analog) gain control (awb) auto exposure anti flicker auto white balance integration time & pre-amp gain control (ae) vclk analog r/g/b gain amp. analog pre gain amp. s e n s o r c o n t r o l l o g i c pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 6 - 2005 magnachip semiconductor ltd. pixel array structure metal shielded black level array [2 line] metal shielded black level array [2 line] b g b g g b g b g . g r g r g g r g r . b g b g g b g b g . g r g r g g r g r . note: if black level data output is enabled& ablc enabled(sctrc[1:0] set to 2 b11) with bayer mode select(sctrc[7] set to high), data output in the areas of metal shielded black level array can be monitored during 4 line period of hsync right after vsync goes from high state to low state. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 7 - 2005 magnachip semiconductor ltd. 40ld pin diagram 16 17 18 19 20 21 22 23 24 25 5 4 3 2 1 35 34 33 32 31 30 29 28 27 26 6 7 8 9 10 11 12 13 14 15 hv7131gp clcc 40 pin top view gnd_io y[7] y[6] y[5] y[4] y[3] y[2] y[1] y[0] vdd_io n c n c n c n c n c n c n c n c n c n c gnd_d vdd_d gnd_a vdd_a gnd_a vdd_a cen resetb nc vdd_io g n d _ i o s t r o b e s c k s d a v c l k h s y n c v s y n c m c l k v d d _ d g n d _ d 40 39 38 37 36 HV7131RP clcc 40 pin top view pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 8 - 2005 magnachip semiconductor ltd. pin description pin type symbol description 1-5 n nc no connection 6 g gnd_io ground for i/o buffer 7~14 o y[7:0] 8bits video data output 15 p vdd_io power for i/o buffer 16 g gnd_d ground for internal digital block 17 p vdd_d power for internal digital block 18 i mclk master input clock 19 o vsync video frame synchronization signal. vsync is active at start of image data frame. 20 o hsync video horizontal line synchronization signal. image data is valid, when hsync is high. 21 o vclk video output clock 22 b sda i2c standard data i/o port 23 i sck i2c clock input 24 o strobe strobe signal output 25 g gnd_io ground for i/o buffer 26 p vdd_io power for i/o bufrfer 27 n nc no connection 28 i resetb sensor reset, low active 29 i cen chip enable, high active cen low : sleep mode, cen high : normal operation mode 30 p vdd_a power for internal analog block 31 g gnd_a ground for internal analog block 32 p vdd_a power for internal analog block 33 g gnd_a ground for internal analog block 34 p vdd_d power for internal digital block 35 g gnd_d ground for internal digital block 36-40 n nc no connection pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 9 - 2005 magnachip semiconductor ltd. functional description pixel architecture pixel architecture is a 4 transistor nmos pixel design. the additional use of a dedicated transfer transistor in the architecture reduces most of reset level noise so that fixed pattern noise is not visible. furthermore, micro-lens is placed upon each pixel in order to increase fill factor so that high pixel sensitivity is achieved. enb setting guide information for normal stand-by mode it is necessary that this kind of initialization sequence for the normal stand-by mode of HV7131RP after system power on dvdd/avdd resetb mclk vsync i2c enb don t care low low low low system power on initialization sequence 2.086 [mcycle] for logic stable time 2.0 [mcycle] for 1'st vsync out more than 4cycle don t care sensor operation sequencesensor power down sequence camera mode video stream 1 stvsync out dvdd/avdd resetb mclk vsync i2c enb don t care low low low low system power on initialization sequence 2.086 [mcycle] for logic stable time 2.0 [mcycle] for 1'st vsync out more than 4cycle don t care sensor operation sequencesensor power down sequence camera mode video stream 1 stvsync out dvdd/avdd resetb mclk vsync i2c enb don t care low low low low system power on initialization sequence 2.086 [mcycle] for logic stable time 2.0 [mcycle] for 1'st vsync out more than 4cycle don t care sensor operation sequencesensor power down sequence camera mode video stream 1 stvsync out dvdd/avdd resetb mclk vsync i2c enb don t care low low low low system power on initialization sequence 2.086 [mcycle] for logic stable time 2.0 [mcycle] for 1'st vsync out more than 4cycle don t care sensor operation sequencesensor power down sequence camera mode video stream 1 stvsync out ex) if mclk = 25[mhz] => 2.086[mcycle] / 25[mhz] = 83.44 ms the time period of enb high value have to keep for 83.44[ms] or more pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 10 - 2005 magnachip semiconductor ltd. sensor imaging operation imaging operation is implemented by the offset mechanism of integration domain and scan domain (rolling shutter scheme). first integration plane is initiated, and after the programmed integration time is elapsed, scan plane is initiated, then image data start being produced. integration time frame 0 time time integration plane frame 0 integration plane frame 1 scan plane frame 0 scan plane frame 1 frame 1 time 10bit on-chip adc on-chip adc converts analog pixel voltage to 10bit digital data. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 11 - 2005 magnachip semiconductor ltd. gamma correction piecewise linear gamma approximation method is implemented. ten piece linear segments are supported and user-programmable. gamma slope registers are programmed as the integer value of real slope value that is multiplied by 64. slope 0 gamma transfer function in out start 0 start 1 slope 1 0 64 128192 256 512 768 16 32 start 2 start 3 1023 start 9 : : 4 color interpolation 3x3 linear color interpolation is done by moving 3x3 interpolation window by one pixel horizontally and vertically b g b g b r g g b r g b pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 12 - 2005 magnachip semiconductor ltd. color correction & color space conversion both of color correction and color space conversion are implemented by 3x3 matrix operation, so that two stages may be merged into one matrix stage. color correction matrix may be resolved by measuring sensor s color spread characteristics for primary color source and calculating the inverse matrix of color spread matrix. for color space conversion matrix, the equation from ccir-601 standard is normally used. therefore, the intended single matrix for color correction and color space conversion may be resolved as below. intended single matrix = color space conversion matrix * color correction matrix intended single matrix coefficients are programmable from C 127/64 to 127/64. programming register value for intended single matrix coefficients should be resolved by the following equations. for positive values, cmaxx = integer (real coefficient value x 64); for negative values, cmaxx = two complement(integer (real coefficient value x 64)); real coefficient value values from C 127/64 to 127/64 can be programmed. ccir-601 ycbcr color space conversion equation < conversion equation > y = (77r + 150g + 29b)/256 range: 16 ~ 235 cb = (-44r C 87g + 131b)/256 + 128 range: 16 ~ 240 cr = (131r C 110g C 21b)/256 + 128 range: 16 ~ 240 < reverse conversion > r = y + 1.371(cr C 128) g = y C 0.698(cr C 128) C 0.336(cb C 128) b = y + 1.732(cb C 128) in the above equations, r, g, and b are gamma-corrected values. image enhancement contrast, brightness, hue and saturation are programmable. contrast and saturation factor range is 0.0 ~ 1.99. brightness factor range is -127 ~ + 128. hue factor range is -30 ~ + 30 . edge enhancement edge enhancement is performed for increasing sharpness of image. edge weight range is 0.5 ~ 8.0. output formatting the output formats such as bayer raw data, rgb 5:6:5, and ycbcr 4:2:2 are supported and the sequence of cb and cr are programmable. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 13 - 2005 magnachip semiconductor ltd. auto exposure control y mean value is continuously calculated every frame, and the integration time value is increased or decreased according to difference between target y mean value and current frame y mean value. auto white balance cb/cr frame mean value is calculated every frame and according to cb/cr frame mean values displacement from cb/cr white target point. spectral characteristics pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 14 - 2005 magnachip semiconductor ltd. register description register symbol add. (hex) default (hex) description device id devid 00 42 product id, revision no. sensor control a sctra 01 23 xflip, yflip, cif mode, sssel, vmode[1:0] sensor control b sctrb 02 00 power down, clock division sensor control c sctrc 03 01 sensor internal control register row start address high rsau 08 00 row start address upper byte row start address low rsal 09 02 row start address lower byte column start address high csau 0a 00 column start address upper byte column start address low csal 0b 02 column start address lower byte window height high wihu 0c 01 window height address upper byte window height low wihl 0d e0 window height address lower byte window width high wiwu 0e 02 window width address upper byte window width low wiwl 0f 80 window width address lower byte hblank time high hblu 10 00 hblank time hblank time low hbll 11 d0 208 clocks vblank time high vblu 12 00 vblank time vblank time low vbll 13 08 5 lines red color gain rcg 14 18 0.5 to 2 64 step 6bit resolution green color gain gcg 15 18 0.5 to 2 64 step 6bit resolution blue color gain bcg 16 18 0.5 to 2 64 step 6bit resolution preamp gain pgaval 17 20 0.5 to 16.5 256 step 8bit resolution preamp gain min pgamin 18 14 0.5 to 16.5 256 step 8bit resolution preamp gain max pgamax 19 ff 0.5 to 16.5 256 step 8bit resolution preamp gain nominal pganom 1a 20 0.5 to 16.5 256 step 8bit resolution analog control a actra 1b 37 amp bias[3:0], cds bias[6:4] reset clamp actrb 1c 7f reset clamping[7:4], adc bias[3:0] red pixel black offset oredl 21 3f -127 to +127 256 step green pixel black offset ogrnl 22 3f msb = 0 mean - {1 b0, [4:0]} blue pixel black offset oblul 23 3f lsb = 1 mean + {1 b0, [4:0]} red pixel active offset oredu 24 ro adc offset value for active red pixel green pixel active offset ogrnu 25 ro adc offset value for active green pixel pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 15 - 2005 magnachip semiconductor ltd. blue pixel active offset obluu 26 ro adc offset value for active blue pixel black level threshold blcth 27 3f black level threshold value(256) isp function enable ispfen 30 02 functions enable & edge eh isp output format outfmt 31 60 image data output formatting & inversion dark noise cancellation dncmode 33 41 dnc blocking[7:4], dnc th[3:2], dnc mode[1:0] dnc enable gain dncgain 34 3e dnc enable at pgain 4.3x dncinth 35 13 dnc enable int. time dncintm 36 12 dnc enable at int time > {dncinth, dncintm, 8 h00} color matrix coefficient 11 cma11 37 2f color matrix coefficient 11 color matrix coefficient 12 cma12 38 db color matrix coefficient 12 color matrix coefficient 13 cma13 39 f6 color matrix coefficient 13 color matrix coefficient 21 cma21 3a 0f color matrix coefficient 21 color matrix coefficient 22 cma22 3b 28 color matrix coefficient 22 color matrix coefficient 23 cma23 3c 08 color matrix coefficient 23 color matrix coefficient 31 cma31 3d f5 color matrix coefficient 31 color matrix coefficient 32 cma32 3e ce color matrix coefficient 32 color matrix coefficient 33 cma33 3f 3d color matrix coefficient 33 gamma segment point 0 gmap0 40 00 start point for gamma line segment 0 gamma segment point 1 gmap1 41 04 start point for gamma line segment 1 gamma segment point 2 gmap2 42 12 start point for gamma line segment 2 gamma segment point 3 gmap3 43 21 start point for gamma line segment 3 gamma segment point 4 gmap4 44 37 start point for gamma line segment 4 gamma segment point 5 gmap5 45 55 start point for gamma line segment 5 gamma segment point 6 gmap6 46 6b start point for gamma line segment 6 gamma segment point 7 gmap7 47 7d start point for gamma line segment 7 gamma segment point 8 gmap8 48 b4 start point for gamma line segment 8 gamma segment point 9 gmap9 49 dd start point for gamma line segment 9 gamma segment slope 0 gmas0 4a 40 slope value for gamma line segment 0 gamma segment slope 1 gmas1 4b 4b slope value for gamma line segment 1 gamma segment slope 2 gmas2 4c 3c slope value for gamma line segment 2 gamma segment slope 3 gmas3 4d 2c slope value for gamma line segment 3 gamma segment slope 4 gmas4 4e 1e slope value for gamma line segment 4 gamma segment slope 5 gmas5 4f 16 slope value for gamma line segment 5 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 16 - 2005 magnachip semiconductor ltd. gamma segment slope 6 gmas6 50 12 slope value for gamma line segment 6 gamma segment slope 7 gmas7 51 0e slope value for gamma line segment 7 gamma segment slope 8 gmas8 52 0a slope value for gamma line segment 8 gamma segment slope 9 gmas9 53 09 slope value for gamma line segment 9 invers color constant for r rcrconst 54 57 invers color constant for r invers color constant for g gcrconst 55 d4 invers color constant for g invers color constant for g gcbconst 56 eb invers color constant for g invers color constant for b bcbconst 57 6e invers color constant for b hue value 1 hue1 58 00 hue value 1 hue value 2 hue2 59 80 hue value 2 contrast value contrast 5a 80 contrast value brightness value brightness 5b 00 brightness value saturation value saturation 5c 80 saturation value edge weight control value egwtcon 5d 00 edge weight control value edge enhancement vth low edthlo 5e 10 edge enhancement vth low suppression pre amp gain min supgmin 60 24 suppression pre amp gain min saturation pre amp gain min satgmin 61 24 saturation pre amp gain min edge pre amp gain min edggmin 62 24 edge gain min ae mode 1 aemode1 70 29 auto exposure mode selection 1 ae mode 2 aemode2 71 ed auto exposure mode selection 2 ae windows weight aewinwgt 72 cd ae windows weigth integration time high inth 73 02 integration time high integration time middle intm 74 71 integration time middle integration time low intl 75 00 integration time low ae target outdoor lutarget1 76 5a ae target outdoor ae target indoor lutarget2 77 5a ae target indoor ae lock boundary aelockfinebn d 78 f6 ae lock boundary ae unlock boundary aeunlockbnd 79 2a ae unlock boundary ae anti-flicker step high aeintsteph 7a 01 ae anti-flicker step high ae anti-flicker step middle aeintstepm 7b 38 ae anti-flicker step middle pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 17 - 2005 magnachip semiconductor ltd. ae anti-flicker step low aeintstepl 7c 80 ae anti-flicker step low ae maximum limit high aeintlimith 7d 09 ae maximum limit high ae maximum limit middle aeintlimitm 7e c4 ae maximum limit middle ae maximum limit low aeintlimitl 7f 00 ae maximum limit low awb mode awbmode 80 18 awb mode awb windows weight awbwinwgt 82 00 awb windows weight awb cb target position cbtarget 83 80 awb cb target position awb cr target position crtarget 84 80 awb cr target position awb lock boundary awblockbnd 85 02 awb lock boundary awb unlock boundary awbunlockbnd 86 20 awb unlock boundary awb cb white pixel boundary cbwhitebnd 87 30 awb white pixel boundary awb cr white pixel boundary crwhitebnd 88 30 awb white pixel boundary awb c boundary awbcbnd 89 30 awb cb+cr boundary r/b gain max awbgainmax 8a 3f r/b gain max r/b gain min awbgainmin 8b 00 r/b gain min ae state machine aefsm 8c ro ae state machine awb state machine awbfsm 8d ro awb state machine lu frame mean lufmean 8e ro lu frame mean value cb frame mean cbfmean 8f ro cb frame mean value cr frame mean crfmean 90 ro cr frame mean value anti banding gain min klbndmin 91 14 anti banding pre amp gain min anti banding gain max klbndmax 92 3d anti banding pre amp gain max awb white pixel boundary awbwhite 93 ff awb white pixel boundary awb black pixel boundary awbblack 94 00 awb black pixel boundary awb valid number awbnumber 95 02 awb valid number integreation-scan plane offset high intscnofsh 96 r0 integration-scan plane offset high integreation-scan plane offset middle intscnofsm 97 r0 integration-scan plane offset middle integreation-scan plane offset low intscnofsl 98 r0 integration-scan plane offset low pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 18 - 2005 magnachip semiconductor ltd. device id [devid : 00h : 42h] 7 6 5 4 3 2 1 0 product id revision number 0 1 0 0 0 0 1 0 high nibble represents sensor array resolution, low nibble represents revision number. sensor control a [sctra : 01h : 23h] 7 6 5 4 3 2 1 0 reserved x-flip y-flip cifmode sssel video mode 0 0 1 0 0 0 1 1 x-flip image is horizontally flipped y-flip image is vertically flipped cifmode when this register set to high and video mode(sctra[1:0]) set to 11 or 00 , output data is cif format. and if this register set to high and video mode(sctra[1:0]) set to 10 , output data is qcif format. 0 isp sub-sampling( high image quality, 1x core frame rate) sssel 1 bayer sub sampling( low image quality, 2x core frame rate) * only applicable row, column is always isp 11 no scaling mode 10 2x2 subsampling mode (1/4 subsampling) 01 2x6 subsampling mode (1/16 subsampling) video mode 00 no scaling mode * more detailed information is available on page 63 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 19 - 2005 magnachip semiconductor ltd. sensor control b [sctrb : 02h : 00h] 7 6 5 4 3 2 1 0 ae/awb block sleep data path block sleep analog block sleep all internal block sleep strobe signal enable clock division 0 0 0 0 0 0 0 0 < clock acronym definition > mcf : master clock frequency dcf : divided clock frequency scf : sensor clock frequency icf : image processing clock frequency vcf : video clock frequency lcf : line clock frequency < clock frequency relation > mcf : mcf dcf : mcf/clock division scf : dcf/2 icf scf for 3x3 interpolation, scf/2 for 1/4 subsampling mode scf/4 for 1/16 subsampling mode vcf : icf*2 for 8bit output lcf : 1/(hblank period + hsync period) ae/awb block sleep ae/awb block goes into sleep mode with this bit set to high. data path block sleep image processing data path block goes into sleep mode with this bit set to high. analog block sleep all internal analog block goes into sleep mode with this bit set to high. with all digital block sleep active, sensor goes into power down mode. all internal block sleep all internal digital and analog block goes into sleep with this bit set to high. strobe signal enable when strobe signal is enabled by this bit, strobe pin will indicates when strobe light should be splashed in the dark environment to get adequate lighted image. clock division divides input master clock(imc) for internal use. internal divided clock frequency (dcf) is defined as master clock frequency (mcf) divided by specified clock divisor. internal divided clock frequency (dcf) is as follows. 000 : mcf, 001 : mcf/2, 010 : mcf/4, 011 : mcf/8 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 20 - 2005 magnachip semiconductor ltd. 100 : mcf/16, 101 : mcf/32, 110 : mcf/64, 111 : mcf/128 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 21 - 2005 magnachip semiconductor ltd. sensor control c [sctrc : 03h : 01h] 7 6 5 4 3 2 1 0 bayer output enable single shot mode black level average output hsync in vblank reserved unit gain mode black level data enable ablc enable 0 0 0 0 0 0 0 1 0 output format is set to rgb565 or ycbcr 4:2:2 by isp output format [31h] value. bayer output enable 1 bayer raw data which does not pass isp function is printed out. single shot mode with this register set to high, single video image is streamed out 0 this bit enable r/g/b active offset registers[24h-26h] to represent updated active offset values black level average output 1 this bit enable r/g/b active offset registers[24h-26h] to represent black level average value hsync in vblank vblank is equivalent to vsync, and hsync is the inversion of hblank, and this bit control whether hsync is active or not when vblank unit is lcf. vsync (vblank) hsync unit gain mode if set to high, the value of r gain and b gain will become equal to g gain. black level data enable hsync is generated for light-shielded pixels in 4 lines. auto black level compensation black level average values of light-shielded pixels are compensated when active image data is produced. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 22 - 2005 magnachip semiconductor ltd. row start address high [rsau : 08h : 00h] 7 6 5 4 3 2 1 0 reserved row start address high 0 0 0 0 0 0 0 0 row start address low [rsal : 09h : 02h] 7 6 5 4 3 2 1 0 row start address low 0 0 0 0 0 0 1 0 row start address register defines the row start address of image read out operation. column start address high [csau : 0ah : 00h] 7 6 5 4 3 2 1 0 reserved column start address high 0 0 0 0 0 0 0 0 column start address low [csal : 0bh : 02h] 7 6 5 4 3 2 1 0 column start address low 0 0 0 0 0 0 1 0 column start address register defines the column start address of image read out operation. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 23 - 2005 magnachip semiconductor ltd. window height high [wihu : 0ch : 01h] 7 6 5 4 3 2 1 0 reserved window height high 0 0 0 0 0 0 0 1 window height low [wihl : 0dh : e0h] 7 6 5 4 3 2 1 0 window height low 1 1 1 0 0 0 0 0 window height register defines the height of image to be read out. window width high [wiwu : 0eh : 02h] 7 6 5 4 3 2 1 0 reserved window width high 0 0 0 0 0 0 1 0 window width low [wiwl : 0fh : 80h] 7 6 5 4 3 2 1 0 window width low 1 0 0 0 0 0 0 0 window width address register defines the width of image to be read out. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 24 - 2005 magnachip semiconductor ltd. hblank time high [hblu : 10h : 00h] 7 6 5 4 3 2 1 0 hblank time high 0 0 0 0 0 0 0 0 hblank time low [hbll : 11h : d0h] 7 6 5 4 3 2 1 0 hblank time low 1 1 0 1 0 0 0 0 hblank time register defines data blank time between current line and next line by using sensor clock period unit (1/scf), and should be larger than 208(d0h). vblank time high[vblu : 12h : 00h] 7 6 5 4 3 2 1 0 vblank time high 0 0 0 0 0 0 0 0 vblank time low[vbll : 13h : 08h] 7 6 5 4 3 2 1 0 vblank time low 0 0 0 0 1 0 0 0 vblank time register defines active high duration of vsync output. active high vsync indicates frame boundary between continuous frames. for vsync-hsync timing relation in the frame transition, please refer to frame timing section. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 25 - 2005 magnachip semiconductor ltd. each sensor has a little different photo-diode characteristics so that the sensor provides internal adjustment registers that calibrate internal sensing circuit in order to get optimal performance. sensor characteristics adjustment registers are as below. red color gain [rcg : 14h : 18h] 7 6 5 4 3 2 1 0 reserved r color gain 0 0 0 1 1 0 0 0 green color gain [rcg : 15h : 18h] 7 6 5 4 3 2 1 0 reserved g color gain 0 0 0 1 1 0 0 0 blue color gain [rcg : 16h : 18h] 7 6 5 4 3 2 1 0 reserved b color gain 0 0 0 1 1 0 0 0 there are three color gain registers for r, g, b pixels, respectively. programmable range is from 0.5x ~ 2.5x. effective gain = 0.5 + b<5:0>/32. these registers may be used for white balance and color effect with independent r,g,b color control. default gain is 1.25x. preamp gain [pgaval : 17h : 20h] 7 6 5 4 3 2 1 0 preamp gain 0 0 1 0 0 0 0 0 preamp gain is common gain for r, g, b channel and used for auto exposure control. programmable range is from 0.5x ~ 16.5x. default gain is 2.5x. gain = 0.5 + b<7:0>/16 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 26 - 2005 magnachip semiconductor ltd. preamp gain min [pgamin : 18h : 14h] 7 6 5 4 3 2 1 0 preamp gain min 0 0 0 1 0 1 0 0 preamp gain min is minimum value of preamp gain when sensor adjusts pre-amplifier gain for auto exposure control. programmable range is same as preamp gain. recommended value is 0.5x. preamp gain max [pgamax : 19h : ffh] 7 6 5 4 3 2 1 0 preamp gain max 1 1 1 1 1 1 1 1 preamp gain max is maximum value of preamp gain when sensor adjusts preamp gain for auto exposure control. programmable range is same as preamp gain. recommended value is 16.5x. preamp gain normal [pganom : 1ah : 20h] 7 6 5 4 3 2 1 0 preamp gain normal 0 0 1 0 0 0 0 0 preamp gain normal is reference value of preamp gain when sensor adjusts preamp gain for auto exposure control. first, sensor controls integration time before adjusting preamp gain for auto exposure control. after integration time is changed to the minimum or maximum value, sensor adjusts preamp gain from this register value. programmable range is same as preamp gain. recommended value is 1.5x. analog control a [actra : 1bh : 37h] 7 6 5 4 3 2 1 0 reserved pixel bias amp bias 0 0 1 1 0 1 1 1 cds bias[6:4] controls the amount of current in cds bias circuit to amplify cds output effectively. the larger register value increases the amount of current. amplifier bias[3:0] controls the amount of current in internal amplifier bias circuit to amplify pixel output effectively. the larger register value increases the amount of current. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 27 - 2005 magnachip semiconductor ltd. reset clamp [actrb : 1ch : 7fh] 7 6 5 4 3 2 1 0 reset level clamp adc bias 0 1 1 1 1 1 1 1 reset clamping[7:4] because extremely bright image like sun affects reset data voltage of pixel to lower, bright image is captured as black image in image sensor regardless of correlated double sampling. to solve this extraordinary phenomenon, we adopt the method to clamp reset data voltage. reset level clamp controls the reset data voltage to prevent inversion of extremely bright image. the larger register value clamps the reset data level at highest voltage level. default value is 7 to clamp the reset data level at appropriate voltage level. adc bias[3:0] adc bias controls the amount of current in adc bias circuit to operate adc effectively. the larger register value increases the amount of current. red pixel black offset [oredl : 21h : 3fh] 7 6 5 4 3 2 1 0 red pixel black offset 0 0 1 1 1 1 1 1 green pixel black offset [ogrnl : 22h : 3fh] 7 6 5 4 3 2 1 0 green pixel black offset 0 0 1 1 1 1 1 1 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 28 - 2005 magnachip semiconductor ltd. blue pixel black offset [oblul : 23h : 3fh] 7 6 5 4 3 2 1 0 blue pixel black offset 0 0 1 1 1 1 1 1 these registers control the offset voltage of adc that changes the black level value for active pixels, red, green and blue pixel respectively. the registers are internally updated by black level compensation logic, and are read-only registers. register bit functions are composed as follows. pixel black offset[7] the bit specifies whether to subtract or add offset voltage in adc input for light-shielded pixels. pixel black offset[6:0] this value specifies the amount of offset voltage for light-shielded pixels. red pixel active offset [oredu : 24h : ro] 7 6 5 4 3 2 1 0 red pixel active offset ro ro ro ro ro ro ro ro green pixel active offset [ogrnu : 25h : ro] 7 6 5 4 3 2 1 0 green pixel active offset ro ro ro ro ro ro ro ro pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 29 - 2005 magnachip semiconductor ltd. blue pixel active offset [obluu : 26h : ro] 7 6 5 4 3 2 1 0 blue pixel active offset ro ro ro ro ro ro ro ro these registers control the offset voltage of adc that changes the black level value for active pixels, red, green and blue pixel respectively. the registers are internally updated by black level compensation logic, and are read-only registers. register bit functions are composed as follows. pixel active offset[7] the bit specifies whether to subtract or add offset voltage in adc input for active pixels. pixel active offset[6:0] this value specifies the amount of offset voltage for active pixels. black level threshold [blcth : 27h : 3fh] 7 6 5 4 3 2 1 0 black level threshold 1 1 1 1 0 0 1 1 the register specifies the maximum value which determines whether light-shielded pixel output is valid. when light-shielded pixel output exceeds this limit, the pixel is not accounted for black level calculation. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 30 - 2005 magnachip semiconductor ltd. isp function enable [ispfen : 30h : 02h] 7 6 5 4 3 2 1 0 saturation suppression enable color suppression enable ispfen[5] smooth filter enable edge enhance enable edge algorithm select gamma correction ispfen[0] 0 0 0 0 0 0 1 0 0 disable it always comes to apply the same saturation [5ch] value in a certain environment. saturation suppression enable 1 enable. if preamp gain[17h] exceeds saturation preamp gain min[60h], saturation value[5ch] is suppressed. 0 disable color suppression enable 1 enable. chroma suppressed u, v output ispfen[5] set 0 0 disable. smooth filter enable 1 enable. if edge enhancement is carried out, a image will become very sharp so by using smooth filter we can obtain a slightly soft image. 0 disable. edge enhance enable 1 enable. in order to generate sharper image edge emphasizes and difference of the section of edge increases. this bit selects edge enhancement algorithm. 0 use the algorithm which makes the line of edge vivid. edge algorithm select 1 use the algorithm which makes the line of edge embossing. 0 disable. normal bayer output gamma correction 1 enable. gamma corrected bayer output ispfen[0] set 0 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 31 - 2005 magnachip semiconductor ltd. isp output format [outfmt : 31h : 60h] 7 6 5 4 3 2 1 0 reserved ufirst yfirst rgb565 enable clk hsc inv vsc inv hsc inv vclk - 1 1 0 0 0 0 0 u first u pixel in front of v pixel for output data sequence. y first y pixel in front of u and v pixels for output data sequence. rgb 565 enable data format of rgb 565 mode is composed with {r[7:3]/g[7:5]}, {g[4:2]/b[7:3]} or {b[7:3]/g[7:5]}, {g[4:2]/r[7:3]}. if outfmt[5](yfirst) register set to low, data format changes to bgr 565. clk hsc in hsync, vclk is embedded, that is, hsync is toggling at vclk rate during normal hsync time inv vsc vsync output polarity is inverted inv hsc do not support. inv vclk vclk output polarity is inverted dark noise cancellation [dncmode : 33h : 41h] dnc always performing zone dark noise always performed when 2 neighborhood pixel values are less then this value x8. dnc threshold determines the grade judged to be noise. (tight)11 - 10 - 01 - 00(loose) 10 dark noise cancellation is always performed 01 dark noise cancellation is performed when integration time (73h- 75h) exceeds (dnc enable integration time[35h-36h] *256) or pre-amp gain[17h] > dnc gain[34h] dnc mode select 11, 00 dark noise cancellation is turned off 7 6 5 4 3 2 1 0 dnc always performing zone dnc threshold dnc mode select 0 1 0 0 0 0 0 1 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 32 - 2005 magnachip semiconductor ltd. dnc enable gain [dncgain : 34h : 3eh] 7 6 5 4 3 2 1 0 dnc mode select 0 0 1 1 1 1 1 0 if dnc mode[33h] set to 01 and dnc enable gain exceeds preamp gain[17h], dnc is enabled. dnc enable int. time high [dncinth : 35h : 13h] 7 6 5 4 3 2 1 0 dark noise cancellation 0 0 0 1 0 0 1 1 dnc enable int. time mid [dncintm : 36h : 12h] 7 6 5 4 3 2 1 0 dark noise cancellation 0 0 0 1 0 0 1 0 for dnc mode [1:0] at 01 , if {dncinth, dncintm, and 8'h00} value is smaller than integration time[73h - 75 h] , dnc will operate. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 33 - 2005 magnachip semiconductor ltd. color matrix coefficients both of color correction and color space conversion are implemented by 3x3 matrix operation, so that two stages may be merged into one matrix stage. color correction matrix may be resolved by measuring sensor s color spread characteristics for primary color source and calculating the inverse matrix of color spread matrix. for color space conversion matrix, the equation from ccir-601 standard is normally used. therefore, the intended single matrix for color correction and color space conversion may be resolved as below. intended single matrix = color space conversion matrix * color correction matrix intended single matrix coefficients are programmable from C 127/64 to 127/64. programming register value for intended single matrix coefficients should be resolved by the following equations. for positive values, cmaxx = integer(realcoefficientvalue x 64); for negative values, cmaxx = twocomplement(integer(realcoefficientvalue x 64)); realcoefficientvalue values from C 127/64 to 127/64 can be programmed. ccir-601 ycbcr color space conversion equation < conversion equation > y = (77r + 150g + 29b)/256 range: 16 ~ 235 cb = (-44r C 87g + 131b)/256 + 128 range: 16 ~ 240 cr = (131r C 110g C 21b)/256 + 128 range: 16 ~ 240 < reverse conversion > r = y + 1.371(cr C 128) g = y C 0.698(cr C 128) C 0.336(cb C 128) b = y + 1.732(cb C 128) in the above equations, r, g, and b are gamma-corrected values color matrix coefficient 11 [cma11 : 37h : 2fh] 7 6 5 4 3 2 1 0 color matrix coefficient 11 0 0 1 0 1 1 1 1 color matrix coefficient 12 [cma12 : 38h : dbh] 7 6 5 4 3 2 1 0 color matrix coefficient 12 1 1 0 1 1 0 1 1 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 34 - 2005 magnachip semiconductor ltd. color matrix coefficient 13 [cma13 : 39h : f6h] 7 6 5 4 3 2 1 0 color matrix coefficient 13 1 1 1 1 0 1 1 0 color matrix coefficient 21 [cma21 : 3ah : 0fh] 7 6 5 4 3 2 1 0 color matrix coefficient 21 0 0 0 0 1 1 1 1 color matrix coefficient 22 [cma22 : 3bh : 28h] 7 6 5 4 3 2 1 0 color matrix coefficient 22 0 0 1 0 1 0 0 0 color matrix coefficient 23 [cma23 : 3ch : 08h] 7 6 5 4 3 2 1 0 color matrix coefficient 23 0 0 0 0 1 0 0 0 color matrix coefficient 31 [cma31 : 3dh : f5h] 7 6 5 4 3 2 1 0 color matrix coefficient 31 1 1 1 1 0 1 0 1 color matrix coefficient 32 [cma32 : 3eh : ceh] 7 6 5 4 3 2 1 0 color matrix coefficient 32 1 1 0 0 1 1 1 0 color matrix coefficient 33 [cma33 : 3fh : 3dh] 7 6 5 4 3 2 1 0 color matrix coefficient 33 0 0 1 1 1 1 0 1 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 35 - 2005 magnachip semiconductor ltd. gamma segment start points gamma segment start points specify the start points of nine line segments for piecewise gamma approximation. current default gamma curve is very selected for optimum gray gradation. gamma segment point 0 [gmap0 : 40h : 00h] 7 6 5 4 3 2 1 0 gamma segment point 0 0 0 0 0 0 0 0 0 gamma segment point 1 [gmap1 : 41h : 04h] 7 6 5 4 3 2 1 0 gamma segment point 1 0 0 0 0 0 1 0 0 gamma segment point 2 [gmap2 : 42h : 12h] 7 6 5 4 3 2 1 0 gamma segment point 2 0 0 0 1 0 0 1 0 gamma segment point 3 [gmap3 : 43h : 21h] 7 6 5 4 3 2 1 0 gamma segment point 3 0 0 1 0 0 0 0 1 gamma segment point 4 [gmap4 : 44h : 37h] 7 6 5 4 3 2 1 0 gamma segment point 4 0 0 1 1 0 1 1 1 gamma segment point 5 [gmap5 : 45h : 55h] 7 6 5 4 3 2 1 0 gamma segment point 5 0 1 0 1 0 1 0 1 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 36 - 2005 magnachip semiconductor ltd. gamma segment point 6 [gmap6 : 46h : 6bh] 7 6 5 4 3 2 1 0 gamma segment point 6 0 1 1 0 1 0 1 1 gamma segment point 7 [gmap7 : 47h : 7dh] 7 6 5 4 3 2 1 0 gamma segment point 7 0 1- 1 1 1 1 0 1 gamma segment point 8 [gmap8 : 48h : b4h] 7 6 5 4 3 2 1 0 gamma segment point 8 1 0 1 1 0 1 0 0 gamma segment point 9 [gmap9 : 49h : ddh] 7 6 5 4 3 2 1 0 gamma segment point 9 1 1 0 1 1 1 0 1 gamma slope values gamma slope registers are programmed as the integer value of real slope value that is multiplied by 64. gamma segment slope 0 [gmas0 : 4ah : 40h] 7 6 5 4 3 2 1 0 gamma segment slope 0 0 1 0 0 0 0 0 0 gamma segment slope 1 [gmas1 : 4bh : 4bh] 7 6 5 4 3 2 1 0 gamma segment slope 1 0 1 0 0 1 0 1 1 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 37 - 2005 magnachip semiconductor ltd. gamma segment slope 2 [gmas2 : 4ch : 3ch] 7 6 5 4 3 2 1 0 gamma segment slope 1 0 0 1 1 1 1 0 0 gamma segment slope 3 [gmas3 : 4dh : 2ch] 7 6 5 4 3 2 1 0 gamma segment slope 3 0 0 1 0 1 1 0 0 gamma segment slope 4 [gmas4 : 4eh : 1eh] 7 6 5 4 3 2 1 0 gamma segment slope 4 0 0 0 1 1 1 1 0 gamma segment slope 5 [gmas5 : 4fh : 16h] 7 6 5 4 3 2 1 0 gamma segment slope 5 0 0 0 1 0 1 1 0 gamma segment slope 6 [gmas6 : 50h : 12h] 7 6 5 4 3 2 1 0 gamma segment slope 6 0 0 0 1 0 0 1 0 gamma segment slope 7 [gmas7 : 51h : 0eh] 7 6 5 4 3 2 1 0 gamma segment slope 7 0 0 0 0 1 1 1 0 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 38 - 2005 magnachip semiconductor ltd. gamma segment slope 8 [gmas8 : 52h : 0ah] 7 6 5 4 3 2 1 0 gamma segment slope 8 0 0 0 0 1 0 1 0 gamma segment slope 9 [gmas9 : 53h : 09h] 7 6 5 4 3 2 1 0 gamma segment slope 9 0 0 0 0 1 0 0 1 inverse color space conversion inverse color space conversion transforms ycbcr by rgb. it is a function only about rgb565 format. default setting value is from ccir-601 standard. r = y + a(cr-128) g = y - b(cr-128) C c(cb-128) b = y + d(cb-128) a : inverse color constant for r[54h] b : inverse color constant for g[55h] c : inverse color constant for g[56h] d : inverse color constant for b[57h] inverse color constant for r [rcrconst : 54h : 57h] 7 6 5 4 3 2 1 0 inverse color constant for r 0 1 0 1 0 1 1 1 for inverse color space conversion matrix, this register defines the constant(a) of following equation(ccir-601 standard). r = y + a(cr-128) pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 39 - 2005 magnachip semiconductor ltd. inverse color constant for g [gcrconst : 55h : d4h] 7 6 5 4 3 2 1 0 inverse color constant for g 1 1 0 1 0 1 0 0 for inverse color space conversion matrix, this register defines the constant(a) of following equation(ccir-601 standard). g = y - a(cr-128) C b(cb-128) inverse color constant for g [gcrconst : 56h : ebh] 7 6 5 4 3 2 1 0 inverse color constant for g 1 1 1 0 1 0 1 1 for inverse color space conversion matrix, this register defines the constant(b) of following equation(ccir-601 standard). g = y - a(cr-128) C b(cb-128) inverse color constant for b [bcrconst : 57h : 6eh] 7 6 5 4 3 2 1 0 inverse color constant for b 0 1 1 0 1 1 1 0 for inverse color space conversion matrix, this register defines the constant(a) of following equation(ccir-601 standard). b = y + a(cb-128) hue value 1 [hue1 : 58h : 00h] 7 6 5 4 3 2 1 0 hue value 1 0 0 0 0 0 0 0 0 hue value 2 [hue2 : 59h : 80h] 7 6 5 4 3 2 1 0 hue value 2 1 0 0 0 0 0 0 0 hue factor for hue adjustment. rotate angle range : -30 ~ +30 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 40 - 2005 magnachip semiconductor ltd. * hue1 or hue2 value is multiplied by 128 angle ( ) hue1 (hex) hue2 (hex) angle ( ) hue1 (hex) hue2 (hex) angle ( ) hue1 (hex) hue2 (hex) -30 c0 6e -9 ec 7e 12 1a 7d -29 c2 6f -8 ef 7e 13 1c 7c -28 c4 71 -7 f1 7f 14 1e 7c -27 c6 72 -6 f3 7f 15 21 7b -26 c8 73 -5 f5 7f 16 23 7b -25 ca 74 -4 f8 7f 17 25 7a -24 cc 74 -3 fa 7f 18 27 79 -23 ce 75 -2 fc 7f 19 29 79 -22 d1 76 -1 fe 7f 20 2b 78 -21 d3 77 0 00 80 21 2d 77 -20 d5 78 1 02 7f 22 2f 76 -19 d7 79 2 04 7f 23 32 75 -18 d9 79 3 06 7f 24 34 74 -17 db 7a 4 08 7f 25 36 74 -16 dd 7b 5 0b 7f 26 38 73 -15 df 7b 6 0d 7f 27 3a 72 -14 e2 7c 7 0f 7f 28 3c 71 -13 e4 7c 8 11 7e 29 3e 6f -12 e6 7d 9 14 7e 30 40 6e -11 e8 7d 10 16 7e -10 ea 7e 11 18 7d contrast value [contrast : 5ah : 80h] 7 6 5 4 3 2 1 0 contrast value 1 0 0 0 0 0 0 0 contrast factor for contrast adjustment. programmable range of contrast value is 0.1 ~ 1.99. the contrast value is same as saturation value. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 41 - 2005 magnachip semiconductor ltd. brightness value [brightness : 5bh : 00h] 7 6 5 4 3 2 1 0 brightness value 0 0 0 0 0 0 0 0 brightness adjustment is performed for summing y data and brightness value. brightness value is two s complement and its range is -127 ~ +128. bright y = y data + brightness value. for positive value, brightness[7:0] = two s complement(integer) saturation value [saturation : 5ch : 80h] 7 6 5 4 3 2 1 0 saturation value 1 0 0 0 0 0 0 0 saturation adjustment is performed for multiplying cr,cb data by saturation value. programmable range of saturation value is 0.1 ~ 1.99. for instance, sat cb,cr = cb,cr data * satuation[7:0] / 256 < contrast & saturation parameter > * contrast or saturation value is multiplied by 128 number contrast & saturation (hex) number contrast & saturation (hex) 0.1 0d 1.1 8d 0.2 1a 1.2 9a 0.3 26 1.3 a6 0.4 33 1.4 b3 0.5 40 1.5 c0 0.6 4d 1.6 cd 0.7 5a 1.7 da 0.8 66 1.8 e6 0.9 73 1.9 f3 1.0 80 1.99 ff pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 42 - 2005 magnachip semiconductor ltd. edge weight control value [egwtcon : 5dh : 00h] 7 6 5 4 3 2 1 0 reserved edge weight 0 0 0 0 0 0 0 0 edge weight : 0 -> 0.5 ~ f -> 8 0. weight increases by 0.5 step and divides into 16 step. edge enhancement vth low [edthlo : 5eh : 10h] 7 6 5 4 3 2 1 0 edge enhancement vth low 0 0 0 1 0 0 0 0 if edge value is higher than this register value, edge enhancement is enabled. suppression pre amp gain min [supgmin : 60h : 24h] 7 6 5 4 3 2 1 0 suppression pre amp gain min 0 0 1 0 0 1 0 0 if preamp gain value is higher than this register value and color suppression enable[30h] is high, color suppression is enabled. saturation pre amp gain min [satgmin : 61h : 24h] 7 6 5 4 3 2 1 0 saturation pre amp gain min 0 0 1 0 0 1 0 0 if preamp gain value is higher than this register value and saturation suppression enable[30h] is high, saturation suppression is enabled. edge pre amp gain min [egegmin : 62h : 24h] 7 6 5 4 3 2 1 0 edge pre amp gain min 0 0 1 0 0 1 0 0 if preamp gain value is higher than this register value and edge enhancement enable[30h] is high, edge suppression is enabled. edge suppression is a function that edge weight decreases in dark pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 43 - 2005 magnachip semiconductor ltd. environment automatically. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 44 - 2005 magnachip semiconductor ltd. auto exposure y mean value is continuously calculated every frame, and the integration time value is increased or decreased according to the displacement between current frame y mean value and target y mean value. ae unlock boundary [79h] ae target [76,77h] ae lock boundary [78h] ae lock boundary [78h] ae unlock boundary [79h] 80h y frame mean ffh 0h ae mode 1 [aemode1 : 70h : 29h] 7 6 5 4 3 2 1 0 aemode1 [7] anti- banding enable anti- banding minimum break aewinen time speed ae mode 0 0 1 0 1 0 0 1 aemode1[7] set 0 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 45 - 2005 magnachip semiconductor ltd. anti-banding enable when anti-banding is enabled, ae initializes integration time registers to 4 x anti-banding step value, and integration increment/decrement amount is set to anti-banding step value in order to remove banding noise caused by intrinsic energy waveform of light sources. banding noise is inherent in cmos image sensor that adopts rolling shutter scheme for image acquisition. in this mode, ae operates with very large unit, typically a reciprocal of (2 x power line frequency), so that minute integration time tuning is not liable. therefore, this mode is recommended for only indoor use. anti-banding minimum break when ae is still of out lock state despite that ae preamp analog gain update value exceeds preamp minimum gain value(18h) and integration time(73h-75h) is reached to ae anti-banding step(7ah-7ch), integration time(73h-75h) is broken to less than ae anti-banding step(7ah-7ch). aewinen this bit uses during calculating the average of y value at present frame for ae. when this bit is high, ae window weight is equal. if not, calculate the average of y using ae window weight. time speed (fast)11 - 10 - 01 - 00(slow) 11 gain-only control mode. only preamp gain is controlled to get optimum exposure state. 10 time-only control mode. only integration time is controlled to get optimum exposure state. 01 time-gain control mode. integration time and preamp gain are controlled to get optimum exposure state. ae mode 00 ae function is disabled ae mode 2 [aemode2 : 71h : edh] 7 6 5 4 3 2 1 0 gain speed 1 gain speed 2 time fine gain fine endgain enagain 1 1 1 0 1 1 0 1 gain speed1 this speed only worked from dark luminance condition to white luminance condition rapidly. (fast)11 - 10 - 01 - 00(slow) pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 46 - 2005 magnachip semiconductor ltd. gain speed2 it s about situation except the case of gain speed 1. gain update speed is specified as follows. (fast)11 - 10 - 01 - 00(slow) integration time fine tune integration time fine tuning is performed when ae arrive around ae fine tune boundary to settle into ae lock state smoothly. preamp gain fine tune preamp gain fine tuning is performed when ae arrive around ae fine tune boundary to settle into ae lock state smoothly. enable digital gain if pre-amp gain(17h) is less then anti-banding gain min(91h), bayer pixel value are gained by ratio of anti-banding gain min / pre-amp gain when this register value set to high. ae analog gain control ae updates preamp gain register(17h) in order to reach optimum exposure state ae windows weight [aewinwgt : 72h : cdh] 7 6 5 4 3 2 1 0 top window center window bottom window side window 1 1 0 0 1 1 0 1 when calculate the average of y, each window is able to have different weight. bottom window in sensor means top window in display. hend hstart vstart vend top(1/16) side(1/4) center(1) bottom(1/16) side(1/4) value weight zro 1 one 1/4 two 1/8 tri 1/16 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 47 - 2005 magnachip semiconductor ltd. integration time high [inth: 73h : 02h] 7 6 5 4 3 2 1 0 integration time high [23:16] 0 0 0 0 0 0 1 0 integration time middle [intm: 74h: 71h] 7 6 5 4 3 2 1 0 integration time middle[15:8] 0 1 1 1 0 0 0 1 integration time low [intl: 75h: 00h] 7 6 5 4 3 2 1 0 integration time low[7:0] 0 0 0 0 0 0 0 0 integration time value register defines the time during which active pixel element evaluates photon energy that is converted to digital data output by internal adc processing. integration time is equivalent to exposure time of general camera so that integration time need to be increased in dark environment and decreased according to lighting condition. maximum integration time is register maximum value(2 24 -1) x sensor clock period(80ns, scf 12.5mhz @ dcf 25mhz) = 1.34sec. ae target outdoor [lutarget1 : 76h : 5ah] 7 6 5 4 3 2 1 0 ae target outdoor 0 1 0 1 1 0 1 0 this register defines the target luminance value for ae operation in outdoor. ae target indoor[lutarget2 : 77h : 5ah] 7 6 5 4 3 2 1 0 ae target indoor 0 1 0 1 1 0 1 0 this register defines the target luminance value for ae operation in indoor. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 48 - 2005 magnachip semiconductor ltd. ae lock boundary [aelockfinebnd : 78h : f6h] 7 6 5 4 3 2 1 0 ae fine boundary ae lock boundary 1 1 1 1 0 1 1 0 ae lock boundary specifies the displacement of y frame mean value(8eh) from ae target in which ae goes into lock state. with anti-banding is enabled, this displacement condition is discarded, and instead ae speed unlock boundary is used as lock boundary. ae fine boundary specifies the displacement of y frame mean value(8eh) from ae target in which ae start to tune fine integration time or preamp gain in order to goes into lock state smoothly. ae unlock boundary [aeunlockbnd : 79h : 2ah] 7 6 5 4 3 2 1 0 ae unlock boundary 0 0 1 0 1 0 1 0 ae unlock boundary specifies y frame mean displacement from ae target in which ae goes into unlock state. in this state, integration time increment/decrement speed changes from 2x (integration unit step) to 1x (integration unit step). in anti-banding mode, this boundary is used as lock boundary for exposure control. ae anti-flicker step high [aeintsteph : 7ah : 01h] 7 6 5 4 3 2 1 0 reserved ae anti-flicker step high 0 0 0 0 0 0 0 1 ae anti-flicker step middle [aeintstepm : 7bh : 38h] 7 6 5 4 3 2 1 0 ae anti-flicker step high 0 0 1 1 1 0 0 0 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 49 - 2005 magnachip semiconductor ltd. ae anti-flicker step low [aeintstepl : 7ch : 80h] 7 6 5 4 3 2 1 0 ae anti-flicker step low 1 0 0 0 0 0 0 0 ae anti-banding step specifies integration time unit value that ae uses when anti-banding is enabled. anti-banding step value is resolved by the following equation. anti-banding step value = sensor operation frequency (scf) / (2x power line frequency) the default value is set with scf 12.5mhz, 50hz power line, that is, anti-banding step value = 12.5mhz / (2 x 50) = 125000d = 1e848h to operate stably, ae anti-flicker step low [1:0] bits have to 00 . so, anti-banding step value at HV7131RP is (1e848h & fffffch = 1e848h) ae maximum limit high [aeintlimith : 7dh : 09h] 7 6 5 4 3 2 1 0 ae maximum limit high 0 0 0 0 1 0 0 1 ae maximum limit middle [aeintlimitm : 7eh : c4h] 7 6 5 4 3 2 1 0 ae maximum limit middle 1 1 0 0 0 1 0 0 ae maximum limit low [aeintlimitl : 7fh : 00h] 7 6 5 4 3 2 1 0 ae maximum limit low 0 0 0 0 0 0 0 0 these three registers define the maximum integration time value that is allowed to sensor operation. it is desirable to set the value to multiples of ae anti-banding step to easily operate with anti-banding mode enabled. the default value is set to 1/8sec with scf set to 25mhz 12.5mhz / 8 = 1,562,500 = 17d784 to operate stably, ae maximum limit low [1:0] bits have to 11 . so, ae maximum limit at HV7131RP is (17d784h | 000003h = 17d787h) pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 50 - 2005 magnachip semiconductor ltd. auto white balance cb/cr frame mean value is calculated every frame and according to cb/cr frame mean values displacement from cb/cr white target point, r/b scaling values for r/b data are resolved. awb unlock boundary [86h] cb/cr target [83h, 84h] awb lock boundary [85h] cb/cr awvb white pixel boundary [87h, 88h] awb lock boundary [85h] awb unlock boundary [86h] cb/cr awb white pixel boundary [87h, 88h] 80h cb/cr frame mean ffh 0h awb mode [awbmode : 80h : 18h] 7 6 5 4 3 2 1 0 reserved atotsten csp val en awb enable awb window enable awb speed awb mode[0] - 0 0 1 1 0 0 0 atotsten this value is using at only simulation or test. csp val en when this bit set to high, color matrix coefficient [cma11 ~ cma33] is used for for color space conversion matrix. and if this bit set to low, the equation from ccir-601 is used. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 51 - 2005 magnachip semiconductor ltd. awb enable auto white balance control enabled. awb is carried out only when satisfying all the following cases. - the displacement of cb/cr frame mean value from awb target is larger than awb lock boundary - the displacement of cb/cr frame mean value from awb target is smaller than awb white pixel boundary - the displacement of the sum of cb target and cr target from the sum of average of cb and cr is smaller than awb c boundary awb window enable this bit uses during calculating the average of cb/cr value at present frame for awb. when this bit is high, awb window weight is equal. if not, calculate the average of cb/cr using awb window weight. awb speed (fast)11 - 10 - 01 - 00(slow) awb mode[0] set 0 awb windows weight [awbwinwgt : 82h : 00h] 7 6 5 4 3 2 1 0 top window center window bottom window side window 0 0 0 0 0 0 0 0 when calculate the average of cb/cr, each window is able to have different weight. bottom window in sensor means top window in display. hend hstart vstart vend top(1) side(1) center(1) bottom(1) side(1) value weight zro 1 one 1/4 two 1/8 tri 1/16 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 52 - 2005 magnachip semiconductor ltd. awb cb target position [cbtarget : 83h : 80h] 7 6 5 4 3 2 1 0 awb cb target position 1 0 0 0 0 0 0 0 this register defines cb target frame mean value for awb operation. awb cr target position [cbtarget : 84h : 80h] 7 6 5 4 3 2 1 0 awb cr target position 1 0 0 0 0 0 0 0 this register defines cr target frame mean value for awb operation. awb lock boundary [awblockbnd : 85h : 02h] 7 6 5 4 3 2 1 0 reserved awb lock boundary 0 0 0 0 0 0 1 0 it specifies cb/cr frame mean values displacement from cb/cr target (83h-84h) value where awb goes into lock state. awb unlock boundary [awbunlockbnd : 86h : 20h] 7 6 5 4 3 2 1 0 awb unlock boundary 0 0 1 0 0 0 0 0 it specifies cb/cr frame mean values displacement from cb/cr target (83h-84h) where awb is released from lock state. awb operation retains lock state unless cb/cr frame mean values displacement value exceeds this boundary. the value should be larger awb lock boundary. awb cb white pixel boundary [cbwhitebnd : 87h : 30h] 7 6 5 4 3 2 1 0 awb cb white pixel boundary 0 0 1 1 0 0 0 0 when cb frame mean values displacement from cb target exceeds awb white pixel boundary value, awb accept frame color as it is and does not try to correct white balance deviation. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 53 - 2005 magnachip semiconductor ltd. awb cr white pixel boundary [crwhitebnd : 88h : 30h] 7 6 5 4 3 2 1 0 awb cr white pixel boundary 0 0 1 1 0 0 0 0 when cr frame mean values displacement from cr target exceeds awb white pixel boundary value, awb accept frame color as it is and does not try to correct white balance deviation. awb c boundary [awbcbnd : 89h : 30h] 7 6 5 4 3 2 1 0 awb c boundary 0 0 1 1 0 0 0 0 in case of the single color which is not a light source, this register uses in order not to operate awb. r/b gain max [awbgainmax : 8ah : 3f] 7 6 5 4 3 2 1 0 r/b gain max 0 0 1 1 1 1 1 1 the register specifies maximum boundary of awb r/b gain r/b gain min [awbgainmin : 8bh : 00] 7 6 5 4 3 2 1 0 r/b gain min 0 0 0 0 0 0 0 0 the register specifies minimum boundary of awb r/b gain ae state machine [aefsm : 8ch : ro] 7 6 5 4 3 2 1 0 ae mode state ae lock state ro ro ro ro ro ro ro ro ae mode state this nibble represents the mode where internal y plane fsm is currently placed among time-gain control, time-only control, or gain-only control modes. 0000 : outdoor exposure control in anti-banding enabled 0001 : gain negative control mode pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 54 - 2005 magnachip semiconductor ltd. 0010 : exposure bidirectional control state 0011 : gain positive control mode 0100 : exposure only control mode 0101 : gain only control mode ae lock state y channel fsm status 0000 means that ae y plane is in lock state 0001 means that ae y plane is in unlock state 0010 means that ae y plane is in far state awb state machine [awbfsm : 8dh : ro] 7 6 5 4 3 2 1 0 reserved ae/awb lock cb lock state cr lock state ro ro ro ro ro ro ro ro ae/awb lock this single status bit indicates that ae and awb are in lock state for optimum still image capture. cb lock state cb channel fsm status. 00 means that awb cb plane is in lock state. cr lock state cr channel fsm status. 00 means that awb cr plane is in lock state lu frame mean [lufmean : 8eh : ro] 7 6 5 4 3 2 1 0 lu frame mean ro ro ro ro ro ro ro ro the register reports current y plane frame mean value. cb frame mean [cbfmean : 8fh : ro] 7 6 5 4 3 2 1 0 cb frame mean ro ro ro ro ro ro ro ro the register reports current cb plane frame mean value. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 55 - 2005 magnachip semiconductor ltd. cr frame mean [crfmean : 90h : ro] 7 6 5 4 3 2 1 0 cr frame mean ro ro ro ro ro ro ro ro the register reports current cr plane frame mean value. anti-banding gain min [klbndmin : 91h : 14h] 7 6 5 4 3 2 1 0 anti-banding gain min 0 0 0 1 0 1 0 0 the register specifies the minimum limit to which ae may decrease preamp gain or y digital gain in order to get optimum exposure value while anti-banding mode is enabled and the following condition is met. ae lock boundary < (y frame mean - ae target) < ae unlock boundary. anti-banding gain max [klbndmax : 92h : 3dh] 7 6 5 4 3 2 1 0 anti-banding gain max 0 0 1 1 1 1 0 1 the register specifies the maximum limit to which ae may increase preamp gain or y digital gain in order to get optimum exposure value while anti-banding mode is enabled and the following condition is met. ae lock boundary < (ae target - y frame mean) < ae unlock boundary. awb white pixel boundary [awbwhite : 93h : ffh] 7 6 5 4 3 2 1 0 awb white pixel boundary 1 1 1 1 1 1 1 1 during cb, cr frame mean value calculation, awb discards pixel of which luminance is larger than this register value. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 56 - 2005 magnachip semiconductor ltd. awb black pixel boundary [awbblack : 94h : 00h] 7 6 5 4 3 2 1 0 awb black pixel boundary 0 0 0 0 0 0 0 0 during cb, cr frame mean value calculation, awb discards pixel of which luminance is smaller than this register value. awb valid number [awbnumber : 95h : 02h] 7 6 5 4 3 2 1 0 awb valid number 0 0 0 0 0 0 1 0 awb update when the number of valid color pixel is larger than (this valid value x 64). integration-scan plane offset high [intscn0fsh : 96h : ro] 7 6 5 4 3 2 1 0 integration-scan offset high ro ro ro ro ro ro ro ro integration-scan plane offset middle [intscn0fsm : 97h : ro] 7 6 5 4 3 2 1 0 integration-scan offset middle ro ro ro ro ro ro ro ro integration-scan plane offset low [intscn0fsl : 98h : ro] 7 6 5 4 3 2 1 0 integration-scan offset low ro ro ro ro ro ro ro ro the register represents time offset between integration plane and scan plane. the value should be the same as the value specified by integration time register(73h C 75h). pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 57 - 2005 magnachip semiconductor ltd. frame timing for clear description of frame timing, clocks acronym and relation are reminded in here again. < clock acronym definition > mcf : master clock frequency dcf : divided clock frequency scf : sensor clock frequency icf : image processing clock frequency vcf : video clock frequency lcf : line clock frequency < clock frequency relation > mcf : mcf dcf : mcf/clock division scf : dcf/2 icf scf for no scale image mode, scf/2 for 2 x 2 subsampling mode scf/4 for 2 x 6 subsampling mode vcf : icf*2 for 8bit output lcf : 1/(hblank period + hsync period) hblank period : hblank time register value * (1/scf) hsync period : hsync active time < frame time calculation > core frame time is (idle slot + video height * lcp) and real frame time is resolved as follows. when integration time > core frame time, real frame time is (integration time + vblank * lcp), otherwise is (core frame time + vblank * lcp). 1. no scale image timing no scale image frame timing related parameters master clock frequency(mcf) 20mhz divided clock frequency(dcf) mcf/1 = 20mhz sensor clock frequency(scf) dcf/2 = 10mhz sensor clock period(scp) 1/10mhz = 100ns window width 640 window height 480 hblank value 208 vblank value 8 vsync mode line mode line clock period(lcp) 848 scps output bus width 8bit vga video output frequency scf * 2 = 20mhz final video output size 640x480 . . pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 58 - 2005 magnachip semiconductor ltd. if integration time < core frame time, real frame time is 2 * (208 + 640) scps + 480 * (208 + 640) scps + 8 * (208 + 640) scps = 415520 scps = 0.041552sec else real frame time is integration time * scps + 8 * (208 + 640) scps. hold slot in frame timing appears only if integration time is larger than core frame time. idle slot(2lcps + (512+hblank)*4) lcp(848 scps) hblank (208 scps) hsync (640 scps) active data: 640 ea vblank[vsync] (8 lcps) hold slot (integration time C core frame time) real frame time core frame time video lines is active every lcp, that is, 480 video lines for 480 lcps pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 59 - 2005 magnachip semiconductor ltd. // 480 line data // 640 scps vclk(20mhz) hsync idle slot hblk 208 scps hsync y cb y cr y cb y // hold slot vsync one active video line is equal to one line clock period(lcp) = 848 scps y[7:0] // vsync pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 60 - 2005 magnachip semiconductor ltd. 2. 2x2 subsampling timing 2 x 2 subsampling frame timing related parameters master clock frequency(mcf) 20mhz divided clock frequency(dcf) mcf/1 = 20mhz sensor clock frequency(scf) dcf/2 = 10mhz sensor clock period(scp) 1/10mhz = 100ns window width 640 window height 480 hblank value 208 vblank value 8 vsync mode line mode line clock period(lcp) 848 * 2 scps output bus width 8bit sif video output frequency scf * 1 = 10mhz final video output size 320x240 in 2 x 2sub-sampling mode, valid video data is produced every other line, i.e. for 480 lcps, active video lines are 240. hsync active time is equal to hsync active time of no scale image mode, but video clock frequency is half of no scale image mode s to produce half size output in horizontal direction. hblank (208 scps) hsync (640 scps) active data: 320 ea vblank[vsync] (8 lcps) hold slot (integration time C core frame time) real frame time core frame time video lines is active every other lcp, that is, 240 video lines for 480 lcps idle slot (( 512+hblank)*4 ) 1 idle line (848scps) pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 61 - 2005 magnachip semiconductor ltd. // 320scps vclk=mclk/4 idle slot hblk 208 scps hsync y cb y cr y cb y // hold slotvsync one active video line is equal to one line clock period(lcp) = 848 scps y[7:0] // hsync 240 line data // 1 idle line vsync 3. 2 x 6 subsampling timing 2 x 6 subsampling frame timing related parameters master clock frequency(mcf) 20mhz divided clock frequency(dcf) mcf/1 = 20mhz sensor clock frequency(scf) dcf/2 = 10mhz sensor clock period(scp) 1/10mhz = 100ns window width 640 window height 480 hblank value 208 vblank value 8 vsync mode line mode line clock period(lcp) 848 * 4 scps output bus width 8bit qsif video output frequency scf / 2 = 5mhz final video output size 160x120 in 2 x 6 subsampling mode, valid video data is produced every four line, i.e. for 480 lcps, active video lines are 120. hsync active time is equal to hsync active time of no scale image mode, but video clock frequency is a quarter of no scale image mode s to produce a quarter size output in horizontal direction. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 62 - 2005 magnachip semiconductor ltd. hblank (208 scps) hsync (640 scps) active data: 160 ea vblank[vsync] (8 lcps) hold slot (integration time C core frame time) real frame time core frame time video data is active at last 1 lcp period of every 4 lcps period, that is, 120 video lines for 480 lcps idle slot ( (512+hblank)*4 ) 3 idle lines (3 * 848 scps) // 160scps vclk=mclk / 8 idle slot hblk 208 scps hsync y cb y cr y cb y // hold slotvsync one active video line is equal to one line clock period(lcp) = 848 scps y[7:0] // 120 line data 3 idle line hsync // vsync pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 63 - 2005 magnachip semiconductor ltd. anti-banding configuration for anti-banding mode to work correctly, the following registers should be configured to the appropriate values. ae mode 70h anti-banding enable[7] ae anti-banding step 7a-7ch scf / (2 x power line frequency) ae integration time limit 7d-7fh the value should be multiples of ae anti-banding step when anti-banding is enabled, ae initializes integration time registers[73-75h] to 4 x anti-banding step value[7a-7ch], and integration increment/decrement amount is set to anti-banding step value in order to remove anti-banding noise caused by intrinsic energy waveform of light sources. banding noise is inherent in cmos image sensor that adopts rolling shutter scheme for image acquisition. data output timing and interface y[7:0] vclk hsync x y0 y1 y2 4ns ~ 5ns 14ns ~ 15ns mclk as specified in the above data output timing diagram, the timing margin between video clock pin (vclk) and data pins (y[7:0]) is about 4ns ~ 5ns. this margin may be sufficient or not according to how much video clock and data pins are delayed internally in the backend chip, respectively. to safely latch the data output in the backend chip, it is recommended that data be latched at negative edge of vclk. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 64 - 2005 magnachip semiconductor ltd. output data according to video mode output data according to video mode is controlled by configuring sensor control a[01h]. configurable options are specified again for your reference. < video mode setting > row sub- sampling ycbcr 4:2:2 outfmt[6:4] = 6h rgb 5:6:5 outfmt[6:4] = 7h bayer sctrc[7] = 1 isp(sssel = 0) support support none vga(640x480) sctra[2:0] = 0h or 3h bayer(sssel = 1) support support support isp(sssel = 0) support support none qvga(320x240) sctra[2:0] = 2h bayer(sssel = 1) support support support isp(sssel = 0) support support none qqvga(160x120 ) sctra[2:0] = 1h bayer(sssel = 1) support support support isp(sssel = 0) support support not support cif(236x288) sctra[2:0] = 8h or bh bayer(sssel = 1) support support not support isp(sssel = 0) support support not support qcif(178x144) sctra[2:0] = ah bayer(sssel = 1) support support not support pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 65 - 2005 magnachip semiconductor ltd. < video mode setting > output format sensor control a [0x01] sensor control c [0x05] output format [0x31] vga (640 x 480) 0x00, 0x03 0x00 0x60 qvga (320 x 240) 0x02 0x00 0x60 qqvga (160 x 120) 0x01 0x00 0x60 cif (356 x 288) 0x08, 0x0b 0x00 0x60 ycbcr422 isp sub- sampling qcif (178 x 144) 0x0a 0x00 0x60 vga (640 x 480) 0x04, 0x07 0x00 0x60 qvga (320 x 240) 0x06 0x00 0x60 qqvga (160 x 120) 0x05 0x00 0x60 cif (356 x 288) 0x0c, 0x0f 0x00 0x60 ycbcr422 bayer sub-sampling qcif (178 x 144) 0x0e 0x00 0x60 vga (640 x 480) 0x00, 0x03 0x00 0x10 qvga (320 x 240) 0x02 0x00 0x10 qqvga (160 x 120) 0x01 0x00 0x10 cif (356 x 288) 0x08, 0x0b 0x00 0x10 rgb565 isp sub- sampling qcif (178 x 144) 0x0a 0x00 0x10 vga (640 x 480) 0x04, 0x07 0x00 0x10 qvga (320 x 240) 0x06 0x00 0x10 qqvga (160 x 120) 0x05 0x00 0x10 cif (356 x 288) 0x0c, 0x0f 0x00 0x10 rgb565 bayer sub-sampling qcif (178 x 144) 0x0e 0x00 0x10 vga (640 x 480) 0x04, 0x07 0x80 0x00 qvga (320 x 240) 0x06 0x80 0x00 bayer sub- sampling qqvga (160 x 120) 0x05 0x80 0x00 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 66 - 2005 magnachip semiconductor ltd. output timings for general configurations are described below. slot named as x means that it is has no meaningful value and should be discarded. no scale image mode or sub-sampling (2x2, 2x6) mode 1. ycbcr 4:2:2 mode or sub-sampling (2x2, 2x6) mode register bit configurations sensor control a : no scale mode or sub-sampling mode output format : 8bit output, y first, u first. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 67 - 2005 magnachip semiconductor ltd. vclk y0 cb0 y1 cr0 y2 cb1 y3 cr1 y4 cb2 x x x x x x x x x x x x x x hsync y[7:0] c[7:0] no scale mode video clock & output data 2 x 2 video clock & output data x y[7:0] clk clk y0 cb0 y1 cr0 y2 2 x 6 video clock & output data x y[7:0] clk y0 cb0 y5 cr2 y5 cb3 x x x x y6 cr3 x x cb1 y3 cr1 y1 cr0 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 68 - 2005 magnachip semiconductor ltd. 2. rgb565 mode or sub-sampling (2x2, 2x6) mode register bit configurations sensor control a : no scale mode or sub-sampling mode output format : 8bit output, y first, u first and rgb565 enable. vclk rg0 gb0 rg1 gb1 rg2 gb2 rg3 gb3 rg4 gb4 x x hsync y[7:0] no scale mode video clock & output data 2 x 2 video clock & output data x y[7:0] clk clk rg0 gb0 rg2 gb2 rg4 2 x 6 video clock & output data x y[7:0] clk rg0 gb0 rg5 gb5 rg6 gb6 rg7 gb7 gb4 rg6 gb6 rg4 gb4 {r0[7:3] g0[7:5]} {g0[4:2] b0[7:3]} pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 69 - 2005 magnachip semiconductor ltd. 3. bayer mode or sub-sampling (2x2, 2x6) mode register bit configurations sensor control a : bayer mode( sssel enable) or sub-sampling mode output format : 8bit output, y first, u first vclk hsync x b g b g b g b g b g b x g r g r g r g r g r g y[7:0] even line y[7:0] odd line bayer mode video clock & output data 2 x 2 video clock & output data 2 x 6 video clock & output data hsync x b g b g b g b g b g b x g r g r g r g r g r g y[7:0] even line y[7:0] odd line hsync x b g b g b g b g b g b x g r g r g r g r g r g y[7:0] even line y[7:0] odd line // 6 line data pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 70 - 2005 magnachip semiconductor ltd. cif or qcif mode 1. ycbcr 4:2:2 with 8bit output register bit configurations sensor control a : no scale mode and cif mode output format : 8bit output, y first, u first y0 cb0 y1 cr0 y2 cb1 y3 cr1 // y12 cb6 y13 cr6 vclk hsync y[7:0] cif y0 cb0 y1 cr0 y2 cb1 y3 cr1 // y12 cb6 y13 cr6 hsync vclk y[7:0] qcif 2. rgb565 with 8bit output register bit configurations sensor control a : no scale mode or cif mode output format : 8bit output, y first, u first and rgb565 enable. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 71 - 2005 magnachip semiconductor ltd. rg0 gb0 rg1 gb1 rg2 gb2 rg3 gb3 // rg12 gb12 rg13 gb13 vclk hsync y[7:0] cif // rg6 gb6 rg7 gb7 hsync vclk y[7:0] qcif rg0 gb0 rg1 gb1 rg2 gb2 rg3 gb3 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 72 - 2005 magnachip semiconductor ltd. i2c chip interface register write sequences one byte write s 22h a 01h a 03h a p *1 *2 *3 *4 *5 *6 *7 *8 set "sensor control a" register into window mode *1. drive: i2c start condition *2. drive: 22h(001_0001 + 0) [device address + r/w bit] *3. read: acknowledge from sensor *4. drive: 01h [sub-address] *5. read: acknowledge from sensor *6. drive: 03h [video mode : cif *7. read: acknowledge from sensor *8. drive: i2c stop condition multiple byte write using auto address increment s 22h a 6ah a 51h a 61h a p *1 *2 *3 *4 *5 *6 *7 *8 *9 *10 set "ae integration step high/low" register as 5161h with auto address increment *1. drive: i2c start condition *2. drive: 22h(001_0001 + 0) [device address + r/w bit] *3. read: acknowledge from sensor *4. drive: 6ah [sub-address] *5. read: acknowledge from sensor *6. drive: 51h [ae integration step high] *7. read: acknowledge from sensor *8. drive: 61h [ae integration step low] *9. read: acknowledge from sensor *10. drive: i2c stop condition pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 73 - 2005 magnachip semiconductor ltd. register read sequence s 22h a 50h a s 23h a data of 50h a p *1 *2 *3 *4 *5 *6 *7 *8 *9 *10 *11 read "reset level control" register from HV7131RP *1. drive: i2c start condition *2. drive: 22h(001_0001 + 0) [device address + r/w bit(be careful. r/w=0)] *3. read: acknowledge from sensor *4. drive: 50h [sub-address] *5. read: acknowledge from sensor *6. drive: i 2 c start condition *7. drive: 23h(001_0001 + 1) [device address + r/w bit(be careful. r/w=1)] *8. read: acknowledge from sensor *9. read: read reset level control value from sensor *10. drive: acknowledge to sensor. if there is more data bytes to read, sda should be driven to low and data read states(*9, *10) is repeated. otherwise sda should be driven to high to prepare for the read transaction end. *11. drive: i2c stop condition ac/dc characteristics absolute maximum ratings symbol parameter units min. max. vdpp digital supply voltage volts -0.3 7.0 vapp analog supply voltage volts -0.3 7.0 vipp input signal voltage volts -0.3 7.0 top operating temperature c -10 50 tst storage temperature c -30 80 caution: stresses exceeding the absolute maximum ratings may induce failure. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 74 - 2005 magnachip semiconductor ltd. dc operating conditions symbol parameter units min. max. load[pf] notes v dd internal operation supply voltage volt 2.6 3.0 v ih input voltage logic "1" volt 2.0 3.0 6.5 v il input voltage logic "0" volt 0 0.8 6.5 v oh output voltage logic "1" volt 2.15 60 at ioh = -1ma v ol output voltage logic "0" volt 0.4 60 i oh output high current ma -4 60 i ol output low current ma 4 60 t a ambient operating temperature celsius -10 50 ac operating conditions symbol parameter max operation frequency units notes mclk main clock frequency 25 mhz 1,2 sck i 2 c clock frequency 400 khz 3 1. mclk may be divided by internal clock division logic for easy integration with high speed video codec system. 2. frame rate : 30 frames/sec at 25mhz, hblank = 208, vblank = 8 3. sck is driven by host processor. for the detail serial bus timing, refer to i2c chip interface section output ac characteristics all output timing delays are measured with output load 60[pf]. output delay includes the internal clock path delay and output driving delay that changes in respect to the output load, the operating environment, and a board design. due to the variable valid time delay of the output, video output signals y[7:0], c[7:0], hsync, and vsync may be latched in the negative edge of vclk for the stable data transfer between the image sensor and video codec. pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 75 - 2005 magnachip semiconductor ltd. y/c[7:0] vclk x data 0 data 1 data 2 hsync data 3 4ns ~ 5ns pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 76 - 2005 magnachip semiconductor ltd. i2c bus timing sda sck stop start t buf t low t r t hd; s ta t hd; d at t high t su; d at t su; s ta t su; s to stop start t f t hd; s ta parameter symbol min. max. unit sck clock frequency f sck 0 400 khz time that i 2 c bus must be free before a new transmission can start t buf 1.2 - us hold time for a start t hd ;s ta 1.0 - us low period of sck t low 1.2 - us high period of sck t high 1.0 - us setup time for start t su ;s ta 1.2 - us data hold time t hd ;d at 100 - ns data setup time t su ;d at 250 - ns rise time of both sda and sck t r - 250 ns fall time of both sda and sck t f - 300 ns setup time for stop t su ;s to 1.2 - us capacitive load of sck/sda c b - - pf pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 77 - 2005 magnachip semiconductor ltd. electro-optical characteristics - color temperature of light source: 3200k / ir cut-off filter (cm-500s, 1mm thickness) is used. soldering infrared(ir) / convection solder reflow condition parameter units min. typical max. note peak temperature range celsius - 230 240 1) note: 1) time within 5 celsius of actual peak temperature, 10sec parameter units min. typical max. note sensitivity mv / lux ? sec 2200 green pixel dark signal mv 12 1/10 , 60 pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 78 - 2005 magnachip semiconductor ltd. clcc package specification pdf created with fineprint pdffactory pro trial version www.pdffactory.com
HV7131RP 2005/ 02 / 04 v1.5 - 79 - 2005 magnachip semiconductor ltd. magnachip semiconductor ltd. * contact point * cis marketing team 15floor, magnachip youngdong bldg. 891 daechi-dong kangnam-gu seoul 135-738 republic of korea tel: 82-2-3459-3374 fax: 82-2-3459-5580 e-mail : jungjin.jeong@magnachip.com pdf created with fineprint pdffactory pro trial version www.pdffactory.com


▲Up To Search▲   

 
Price & Availability of HV7131RP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X